<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:body>
        <div class="floatRight width75">
            <h:form>
                <h3>Liste de nouveaux produits</h3>
                <h:commandButton action="#{produitController.doNew()}" class="btn btn-primary" value="Créer un nouveau"></h:commandButton> 
                <br/>
            </h:form>
            <h:form>
                <ui:repeat value="#{produitController.newProduits}" var="produit">
                    <!--<div class="row">-->
                        <div class="col-md-4">
                            <div class="thumbnail">
                                <img src="http://ecx.images-amazon.com/images/I/81ccLffmzxL._SL1500_.jpg" alt="Avatar"/>
                                <div class="caption">
                                    <h3>Thumbnail label</h3>
                                    <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
                                    <p style="text-align: center"><a href="#" class="btn btn-primary" role="button">Ajouter</a> <a href="#" class="btn btn-success" role="button">Voir detail</a></p>
                                </div>
                            </div>
                        </div>
                    <!--</div>-->
                </ui:repeat>
            </h:form>
        </div>        
    </h:body>
</html>
